import request from '@/utils/request'

export function findList(data) {
    return request({
        url: '/orders',
        method: 'get',
        params: data,
    })
}

export function dispatchOrder(data) {
    return request({
        url: '/orders/dispatch',
        method: 'post',
        params: data,
    })
}

export function refundOrder(id) {
    return request({
        url: '/orders/refund/'+id,
        method: 'put'
    })
}


